﻿using System;
using System.Collections.Generic;
using System.Linq;
using Autodesk.Revit.DB;

namespace YJKRevitDimensionText.OneKeyPlanDim.DimesionDataEx
{
	public class GridGroupDataEx
	{
		public GridGroupDataEx(XYZ vcDirToBubble, List<GridInfoCache> lstGridInfoCache)
		{
			if (!EnumerableExternsion.IsEmpty<GridInfoCache>(lstGridInfoCache))
			{
				this.m_vecGridNum = vcDirToBubble;
				this.m_lstGridInfoCache = lstGridInfoCache;
				this.m_lstLine = (from thisItem in lstGridInfoCache
				select thisItem.ThisGridLine).ToList<Line>();
			}
		}

		public XYZ VecGridNum
		{
			get
			{
				return this.m_vecGridNum;
			}
		}

		public List<Line> LstLine
		{
			get
			{
				return this.m_lstLine;
			}
		}

		public List<GridInfoCache> GridInfoCaches
		{
			get
			{
				return this.m_lstGridInfoCache;
			}
		}

		private XYZ m_vecGridNum;

		private List<Line> m_lstLine = new List<Line>();

		private List<GridInfoCache> m_lstGridInfoCache = new List<GridInfoCache>();
	}
}
